<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page import="com.lukebang.util.RSAUtils"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.security.interfaces.*"%>
<c:set var="ctxPath" value="${pageContext.request.contextPath}"
	scope="application" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="ThemeBucket">
<link rel="shortcut icon" href="#" type="image/png">
<link rel="shortcut icon" type="image/x-icon"
	href="${ctxPath }/static/images/lukebang320.ico" media="screen" />
<link rel="icon" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link rel="bookmark" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<title>新建测量单</title>
<link rel="stylesheet"
	href="${ctxPath }/static/js/data-tables/DT_bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-timepicker/css/timepicker.css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-datetimepicker2/css/datetimepicker-custom.css" />
<link href="${ctxPath }/static/css/style.css" rel="stylesheet">
<link href="${ctxPath }/static/css/style-responsive.css"
	rel="stylesheet">
<link
	href="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.css"
	rel="stylesheet" type="text/css" />
<link href="${ctxPath}/static/css/jquery.stepy.css" rel="stylesheet">
<style type="text/css">
.validateFontSize {
	font-size: 12px;
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
  <%
	HashMap<String, Object> map = RSAUtils.getKeys();
	//生成公钥和私钥    
	RSAPublicKey publicKey = (RSAPublicKey) map.get("public");
	RSAPrivateKey privateKey = (RSAPrivateKey) map.get("private");
	session.setAttribute("privateKey", privateKey);//私钥保存在session中，用于解密  
	//公钥信息保存在页面，用于加密  
	String publicKeyExponent = publicKey.getPublicExponent().toString(16); //公钥指数   
	String publicKeyModulus = publicKey.getModulus().toString(16); //模    
	request.setAttribute("publicKeyExponent", publicKeyExponent);
	request.setAttribute("publicKeyModulus", publicKeyModulus);
%>
</head>
<body class="sticky-header" onload="indexmenu('${oneMenu}','${twoMenu}');">
	<%@ include file="../index/index.jsp"%>
	<section>
		<div class="main-content" style="overflow-y: auto">
			<!-- 地址栏-->
			<div class="page-heading">
				<h3>鹿客帮下单</h3>
				<ul class="breadcrumb">
					<li><a>任务管理</a></li>
					<li class="active">下测量单</li>
				</ul>
			</div>
			<!--这里是写一些内容的  -->
			<h3>&nbsp;&nbsp;&nbsp;下测量订单：</h3>
			<form id="addIndentForm" class="form-horizontal left-align form-well">
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">顾客姓名：</label>
					<div class="col-md-4">
						<input type="text" style="display: none" /> <input type="text"
							placeholder="顾客姓名" class="form-control"
							onkeyup="this.value=this.value.replace(/[, ]/g,'')" name="name">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">电话：</label>
					<div class="col-md-4">
						<input type="text" placeholder="电话" class="form-control"
							onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="11"
							name="phone">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">测量时间：</label>
					<div class="col-md-4">
						<input size="16" type="text" readonly
							class="form_datetime-meridian form-control" name="subscribeTime">
					</div>
				</div>

				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">房间数：</label>
					<div class="col-md-4">
						<input type="text" placeholder="房间数" class="form-control"
							onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="3"
							name="roomNumber">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">地址：</label>
					<div>
						<div class="col-sm-1">
							<select class="form-control" name="province" id="Province"
								style="width: 129px;">
								<option value="999999">省</option>
							</select>
						</div>
						<div class="col-sm-1">
							<select class="form-control" name="city" id="City"
								style="width: 129px;">
								<option value="999999">市</option>
							</select>
						</div>
						<div class="col-sm-1">
							<select class="form-control" name="country" id="countrySelect"
								style="width: 129px;">
								<option value="999999">区</option>
							</select>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">详细地址：</label>
					<div class="col-md-4">
						<textarea name="measureAddress" placeholder="详细地址" rows="2"
							class="form-control"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">订单备注：</label>
					<div class="col-md-4">
						<textarea name="remark" placeholder="订单备注" rows="2"
							class="form-control"></textarea>
					</div>
				</div>
				<!-- 	<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">测量费：</label>
					<div class="col-md-4">
						<button type="button" onclick="viewIndentPriceDetailModalOpen()"
							class='btn btn-primary btn-sm'>查看测量费用</button>
						<input type="text" placeholder="测量废铜" readonly
							class="form-control"
							style="width: 100px; background: transparent; border: 0"
							id="txt_measurePrice">
					</div>
				</div> -->
			</form>
			<button class="btn btn-info" style="position: relative; float: right; margin-right: 30em; width: 90px"
				onclick="makeMeasureIndent(this)">生成订单
			</button>
			<!--内容结束  -->
		</div>
	</section>
	
	<!-- 查看测量订单详细价钱modal -->
	<div id="viewIndentPriceDetailModal" class="modal fade" role="dialog"
		aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true"></button>
					<h4 class="modal-title">查看本订单的详细扣费信息</h4>
				</div>
				<div class="modal-body form">
					<form action="#" class="form-horizontal form-row-seperated"
						role="form">
						<div class="form-group">
							<label class="col-sm-5 control-label">您选择的房间数：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_roomNumber"
										class="form-control" />
								</div>
								<p class="help-block">本订单所需测量的房间数。</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">该城市基本测量房间数：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_basicRoomNumber" maxlength="3"
										class="form-control" />
								</div>
								<p class="help-block">该房间数以内统一价格。</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">该城市基本测量价格：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_basicMeasureMoney"
										class="form-control" />
								</div>
								<p class="help-block">基本测量数量之内统一价格。</p>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">测量房间数价格区间一：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_oneSection"
										class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-5 control-label">测量房间数价格区间二：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_twoSection"
										class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-group last">
							<label class="col-sm-5 control-label">测量费用和：</label>
							<div class="col-sm-7">
								<div class="input-group">
									<input type="text" id="txt_view_customerMeasureMoney"
										class="form-control" />
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn grey-salsa btn-outline"
						
						data-dismiss="modal">关闭</button>
				</div>
			</div>
		</div>
	</div>

	
<jsp:include page="../taskList/payMesure.jsp" >
	<jsp:param value="0" name="type"/>
</jsp:include>
<jsp:include page="../taskList/password.jsp"></jsp:include>
</body>
<script src="${ctxPath}/static/js/security/security.js"></script>
<script src="${ctxPath}/static/js/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${ctxPath }/static/js/bootstrap-datetimepicker2/js/bootstrap-datetimepicker.js"></script>
<script src="${ctxPath }/static/js/pickers-init.js"></script>
<script
	src="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.js"
	type="text/javascript"></script>
<script src="${ctxPath}/static/js/custom/newTask/common.js"></script>
<script src="${ctxPath}/static/js/custom/newTask/addMeasure.js"></script>
<script type="text/javascript">
</script>
</html>
